Skip to main content

shadowColor

Type

property

Summary

Specifies the color of an object's drop shadow or the background of a scrollbar.

Syntax

set the shadowColor of <object> to {empty | <colorName> | <RGBColor>}

Description

Use the shadowColor property to specify the drop shadow color of a field or button or the background color of a scrollbar.

Setting the shadowColor of an object to empty allows the shadowColor of the object's owner to show through. Use the effective keyword to find out what color is used for the object, even if its own shadowColor is empty.

The setting of the shadowColor property has different effects, depending on the object type:

  • The shadowColor of a stack, card, or group determines the shadowColor of each object in the stack, card, or group that does not have its own shadowColor.

  • The shadowColor of a button is used for the button's drop shadow. If the button's style is menu (unless the menuMode is tabbed), the shadowColor has no effect. If the button is a tabbed button, the shadowColor is always used for the inactive tabs; otherwise, if the button's shadow property is false, the shadowColor has no effect.

  • The shadowColor of a field determines the color of the field's drop shadow. If the field's shadow property is false, the shadowColor has no effect.

  • The shadowColor of a scrollbar determines the background color of the scrollbar.

  • The shadowColor of a graphic, player, audio clip, video clip, or EPS object has no effect.

  • The shadowColor of an image is the seventh color in the image's color palette.

If an object's shadowPattern is set, the pattern is shown instead of the color specified by the shadowColor.

Examples

set the shadowColor of last scrollbar to myBgColor
set the shadowColor of button "OK" to "gray"
set the shadowColor of the mouseControl to "#336699"

property: style, shadow, topColor

command: group

glossary: object, property, EPS, audio clip, tabbed button, object type, color palette, keyword, integer, video clip, hexadecimal, color reference

keyword: effective, field, button, shadow, scrollbar, player, card, graphic, image

object: button, image, field, stack

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?